// $Id: DqlPerspective.java 14 2011-09-12 19:41:16Z huijzer@gmail.com $
package lime.dql;

import lime.dql.view.DqlEditorView;
import lime.dql.view.DqlHistoryView;
import lime.dql.view.DqlResultsView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class DqlPerspective implements IPerspectiveFactory {

	public static final String ID = "lime.dql.perspective";
	
	@Override
	public void createInitialLayout(IPageLayout layout) {
	
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
		
		layout.addView(DqlEditorView.ID, IPageLayout.LEFT, 1.0f, IPageLayout.ID_EDITOR_AREA);
		layout.addView(DqlResultsView.ID, IPageLayout.BOTTOM, 0.3f, DqlEditorView.ID);
		layout.addView(DqlHistoryView.ID, IPageLayout.RIGHT, 0.7f, DqlEditorView.ID);
	}

}
